package com.mmallbe.dao;

import com.mmallbe.pojo.Order;
import com.mmallbe.pojo.OrderItem;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Order record);

    int insertSelective(Order record);

    Order selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);

    Order selectByUserIdAndOrderNo(@Param("userId") Integer userId, @Param("orderNo") Long orderNo);

    Order selectByOrderNo(@Param("orderNo") Long orderNo);

    List<Order> selectByUserId(@Param("userId") Integer userId);

    List<Order> selectAllOrder();
//
//    //二期新增订单关单
//    List<Order>  selectOrderStatusByCreateTime(@Param("status") int status,@Param("date") String date);

//    int closeOrderByOrderId(Integer id);


    //二期新增订单关单
    List<Order>  selectOrderStatusByCreateTime(@Param("status") int status,@Param("date") String date);

    int closeOrderByOrderId(Integer id);
}